import { get, post, put, del } from "../utils/requiest";
export const listByPageAPI = (params) => get("/api/v1/admin/products", params);
export const loadByIdAPI = (id) => get("/api/v1/admin/products" + id);
export const addAPI = (data) => post("/api/v1/admin/products", data);
export const changeAPI = (id, data) =>
  put("/api/v1/admin/products/" + id, data);
export const delAPI = (id) => del("/api/v1/admin/products/" + id);
